Skip to content

fix(recipes): retry setup-apkrepos until the apk lock frees - #35

Merged
NovusEdge merged 1 commit into
mainfrom
recipes-apkrepos-retry
Aug 10, 2026
Merged

fix(recipes): retry setup-apkrepos until the apk lock frees#35
NovusEdge merged 1 commit into
mainfrom
recipes-apkrepos-retry

Conversation

@NovusEdge

Copy link
Copy Markdown
Owner

Follow-up to the apk-lock work. setup-apkrepos runs apk update internally and takes no --wait flag, so the earlier --wait change could not cover it. That is the exact line provision runs kept dying on with exit 99: Unable to lock database: Resource temporarily unavailable.

Each Alpine recipe (devtools, docker, tailscale, xfce) now retries setup-apkrepos for up to ~60s, so a brief lock hold from any apk waits the holder out instead of aborting the run. The until condition keeps set -e from tripping on a locked-out attempt.

The per-VM provision lock removes stoat-side contention; this retry covers the rest (a boot-time apk, or someone sshing in mid-run).

just check, just test, and sh -n on all four scripts pass.

setup-apkrepos runs apk update internally and takes no --wait flag, so
another apk holding the database lock fails it with exit 99. That is the
line the provision kept dying on, since --wait only covers apk add.

Each Alpine recipe now retries setup-apkrepos, up to ~60s, so a brief lock
hold waits the holder out instead of aborting the run. The until condition
keeps set -e from tripping on a locked-out attempt.
@NovusEdge NovusEdge added the bug Something isn't working label Aug 10, 2026
@NovusEdge NovusEdge self-assigned this Aug 10, 2026
@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@NovusEdge, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 40 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e784f5d6-db5a-4c46-834c-60625e4021d5

📥 Commits

Reviewing files that changed from the base of the PR and between 1751bc3 and 08053ef.

📒 Files selected for processing (4)
  • internal/recipes/bundled/devtools/install.sh
  • internal/recipes/bundled/docker/install.sh
  • internal/recipes/bundled/tailscale/install.sh
  • internal/recipes/bundled/xfce/install-alpine.sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NovusEdge
NovusEdge merged commit 099bc6c into main Aug 10, 2026
7 of 8 checks passed
@NovusEdge
NovusEdge deleted the recipes-apkrepos-retry branch August 10, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant